home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 13
/
AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso
/
rexx
/
unindentblk.bed
< prev
next >
Wrap
Text File
|
1997-12-03
|
537b
|
39 lines
/*
** $VER: UnindentBlk.bed 1.01 (01.04.96)
**
** Unindent the selected block
**
** Written by Marco Negri
*/
OPTIONS RESULTS
SetInputLock ON
SetDisplayLock ON
GetBlkDims
PARSE VAR RESULT mode . start . end
GetCursorPos
PARSE VAR RESULT y x .
IF mode = OFF THEN DO
SetStatusBar "Error: No block selected!"
END; ELSE DO
SetStatusBar "Unindenting the block..."
Move LINE start
RecordMacro QUIET
ShiftLeft TABS
MoveDown
EndMacro
IF end-start > 0 THEN
PlayMacro end-start
Move y x
END
SetDisplayLock OFF
SetInputLock OFF